package com.itheima.controller;

import com.itheima.common.R;
import com.itheima.domain.MemberLevel;
import com.itheima.manager.UmsMemberLevelManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UmsMemberLevelController {
    @Autowired
    UmsMemberLevelManager umsMemberLevelManager;

    //查询所有会员等级
    @GetMapping("/memberLevel/list")
    public R<List<MemberLevel>> findAll(Integer defaultStatus){
        return umsMemberLevelManager.findAll(defaultStatus);
    }
}
